﻿using System;

namespace Glue.Converters
{
    internal class DoubleDecimalConverter:GlueDefaultConverter<double,decimal>
    {
        internal override decimal InternalMapTowardsRight(double from)
        {
            return Convert.ToDecimal(from);
        }

        internal override double InternalMapTowardsLeft(decimal from)
        {
            return Convert.ToDouble(from);
        }
    }
}
